package rosedb.gui;




import java.awt.Toolkit;
import javax.swing.JPanel;
import javax.swing.JWindow;

/**
 *
 * @author riu
 */
public class DiaPreviewWindow extends JWindow{

    public DiaPreviewWindow(JPanel child) { 
        setLayout(null);
        add(child);
        setContentPane(child);
        //setModalExclusionType(ModalExclusionType.APPLICATION_EXCLUDE);
        if(child instanceof DiaPreviewPanel){
            ((DiaPreviewPanel)child).setparent(this);
        }

        this.setSize(Toolkit.getDefaultToolkit().getScreenSize());
        this.setVisible(true);
        
    }
    
}
